home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / makefile.os2 < prev    next >
Encoding:
Makefile  |  1993-12-30  |  4.7 KB  |  124 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools, under OS2.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.os2' for the exact path names to be used for libraries and
  8. #    binaries. Set the proper C compiler and graphics library flags in
  9. #    makeflag.unx as well.
  10. # 2. The libgif.a is not provided here. See the documentation on how to get
  11. #    it. Without it poly3d-r cannot be build.
  12. #    The make files are set as if libgif.a IS PROVIDED.
  13. #
  14. #                Gershon Elber, Nov. 1991
  15. #
  16.  
  17. include makeflag.os2
  18.  
  19. #
  20. # Uncommend the following variable to only see the actions taken.
  21. #
  22. # VIEW_ONLY = -n
  23.  
  24.  
  25. all:    docs
  26.     cd misc_lib && make $(VIEW_ONLY) -f makefile.os2 install
  27.     cd cagd_lib && make $(VIEW_ONLY) -f makefile.os2 install
  28.     cd prsr_lib && make $(VIEW_ONLY) -f makefile.os2 install
  29.     cd geom_lib && make $(VIEW_ONLY) -f makefile.os2 install
  30.     -cd grapdrvs && make $(VIEW_ONLY) -f makefile.os2 install
  31.     -cd irit     && make $(VIEW_ONLY) -f makefile.os2 install
  32.     -cd docs     && make $(VIEW_ONLY) -f makefile.os2 install
  33.     -cd illustrt && make $(VIEW_ONLY) -f makefile.os2 install
  34.     -cd poly3d-h && make $(VIEW_ONLY) -f makefile.os2 install
  35.     -cd poly3d-r && make $(VIEW_ONLY) -f makefile.os2 install
  36.     -cd iritfltr && make $(VIEW_ONLY) -f makefile.os2 install
  37.     cmd /c echo Before executing the test suite and/or any usage of this package
  38.     cmd /c echo you will have to issue the following command:
  39.     cmd /c echo set path = "%path%;$(BIN_DIR)"
  40.     cmd /c echo set IRIT_PATH = $(BIN_DIR)/
  41.     cmd /c echo set IRIT_BIN_IPC = 1
  42.     cmd /c echo or similar.
  43.  
  44. clean:
  45.     -rm poly3d-h/*.map poly3d-h/*.bak poly3d-h/*.old poly3d-h/*.hdn poly3d-h/*.sym
  46.     -rm illustrt/*.map illustrt/*.bak illustrt/*.old illustrt/*.sym
  47.     -rm poly3d-r/*.map poly3d-r/*.bak poly3d-r/*.old poly3d-r/*.gif poly3d-r/*.sym
  48.     -rm iritfltr/*.map iritfltr/*.bak iritfltr/*.old iritfltr/*.sym
  49.     -rm prsr_lib/*.map prsr_lib/*.bak prsr_lib/*.sym
  50.     -rm cagd_lib/*.map cagd_lib/*.bak cagd_lib/*.sym
  51.     -rm geom_lib/*.map geom_lib/*.bak geom_lib/*.sym
  52.     -rm grapdrvs/*.map grapdrvs/*.bak grapdrvs/*.sym
  53.     -rm misc_lib/*.map misc_lib/*.bak misc_lib/*.sym
  54.     -rm irit/*.map irit/*.bak irit/*.old irit/*.sym irit/*.dat
  55.     -rm docs/irithlp.exe
  56.  
  57. cleanobj:
  58.     -rm poly3d-h/*.o poly3d-r/*.o illustrt/*.o irit/*.o \
  59.         iritfltr/*.o cagd_lib/*.o misc_lib/*.o geom_lib/*.o \
  60.         prsr_lib/*.o grapdrvs/*.o docs/*.o
  61.     -rm docs/irithlp.exe
  62.  
  63. #
  64. # Make hardcopy documentation.
  65. #
  66. docs:
  67.     cd docs
  68.     -make $(VIEW_ONLY) -f makefile.os2 irit.tex irit.doc
  69.     cd ..
  70.  
  71. #
  72. # Test some of the above programs. Make sure $(BIN_DIR) is in your path
  73. #
  74. test:
  75.     -cd irit && irit demo
  76.     -cd poly3d-h && cmd /c test-os2
  77.     -cd poly3d-r && cmd /c test-os2
  78.     -cd illustrt && cmd /c test-os2
  79.     -cd iritfltr && cmd /c test-os2
  80.  
  81. #
  82. # Generate dependencies for the source tree.
  83. #
  84. depend:
  85.     -cd irit     && makedpnd -u -r -m makefile.unx *.c
  86.     -cd irit     && makedpnd -u -r -m makefile.os2 *.c
  87.     -cd irit     && makedpnd    -r -m makefile.tc *.c
  88.     -cd poly3d-h && makedpnd -u -r -m makefile.unx *.c
  89.     -cd poly3d-h && makedpnd -u -r -m makefile.os2 *.c
  90.     -cd poly3d-h && makedpnd -u -r -m makefile.djg *.c
  91.     -cd poly3d-h && makedpnd    -r -m makefile.tc *.c
  92.     -cd poly3d-r && makedpnd -u -r -m makefile.unx *.c
  93.     -cd poly3d-r && makedpnd -u -r -m makefile.os2 *.c
  94.     -cd poly3d-r && makedpnd -u -r -m makefile.djg *.c
  95.     -cd poly3d-r && makedpnd    -r -m makefile.tc *.c
  96.     -cd illustrt && makedpnd -u -r -m makefile.unx *.c
  97.     -cd illustrt && makedpnd -u -r -m makefile.os2 *.c
  98.     -cd illustrt && makedpnd    -r -m makefile.tc *.c
  99.     -cd iritfltr && makedpnd -u -r -m makefile.unx *.c
  100.     -cd iritfltr && makedpnd -u -r -m makefile.os2 *.c
  101.     -cd iritfltr && makedpnd -u -r -m makefile.djg *.c
  102.     -cd iritfltr && makedpnd    -r -m makefile.tc *.c
  103.     -cd cagd_lib && makedpnd -u -r -m makefile.unx *.c
  104.     -cd cagd_lib && makedpnd -u -r -m makefile.os2 *.c
  105.     -cd cagd_lib && makedpnd -u -r -m makefile.djg *.c
  106.     -cd cagd_lib && makedpnd    -r -m makefile.tc *.c
  107.     -cd geom_lib && makedpnd -u -r -m makefile.unx *.c
  108.     -cd geom_lib && makedpnd -u -r -m makefile.os2 *.c
  109.     -cd geom_lib && makedpnd -u -r -m makefile.djg *.c
  110.     -cd geom_lib && makedpnd    -r -m makefile.tc *.c
  111.     -cd misc_lib && makedpnd -u -r -m makefile.unx *.c
  112.     -cd misc_lib && makedpnd -u -r -m makefile.os2 *.c
  113.     -cd misc_lib && makedpnd -u -r -m makefile.djg *.c
  114.     -cd misc_lib && makedpnd    -r -m makefile.tc *.c
  115.     -cd grapdrvs && makedpnd -u -r -m makefile.unx *.c
  116.     -cd grapdrvs && makedpnd -u -r -m makefile.os2 *.c
  117.     -cd grapdrvs && makedpnd -u -r -m makefile.djg *.c
  118.     -cd grapdrvs && makedpnd    -r -m makefile.tc *.c
  119.     -cd prsr_lib && makedpnd -u -r -m makefile.unx *.c
  120.     -cd prsr_lib && makedpnd -u -r -m makefile.os2 *.c
  121.     -cd prsr_lib && makedpnd -u -r -m makefile.djg *.c
  122.     -cd prsr_lib && makedpnd    -r -m makefile.tc *.c
  123.  
  124.